@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './reset.scss';
@import '~@/assets/iconfont/iconfont.css';
body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

// main-container global css
.app-container {
    padding: 20px;
}

// basicServices > dataDictionary css
// layout css
.x_c {
    display: flex;
    align-items: center;
}

.x_c_sa {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.x_c_sb {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xy_c {
    display: flex;
    justify-content: center;
    align-items: center;
}

// 
._bule {
    color: #2b9bff;
}

._red {
    color: #fa3a15;
}

._yg {
    color: #40dd21;
}

._grey {
    color: #aaa;
}

@mixin w_h($w, $h) {
    min-width: $w;
    height: $h;
}

// input 
.k_input {
    width: 263px;
    height: 30px;
    font-size: 12px;
    .el-input__inner {
        width: 100%;
        height: 100%;
    }
}

// select
.k_select {}

.el-select-dropdown {
    .el-select-dropdown__item.selected {
        color: #000;
        background: #e6e9eb !important;
    }
    .popper__arrow {
        display: none;
    }
}

// button css 
button,
input {
    border: none;
    outline: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}

@mixin btn_com {
    display: inline-block;
    // min-width: 60px;
    // height: 26px;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
}

@mixin btn_color($s, $q) {
    @include btn_com();
    background: linear-gradient(0deg, $s, $q, $s);
    box-shadow: inset 0px 0px 1px 0px $s
}

.min_bt_df {
    @include btn_color(#0695e5, #1da6df);
    @include w_h(60px, 26px);
}

.min_bt_gy {
    @include btn_color(#69809e, #889eb6);
    @include w_h(60px, 26px);
}

.md_bt_df {
    @include btn_color(#0695e5, #1da6df);
    @include w_h(80px, 30px);
}

.md_bt_gy {
    @include btn_color(#69809e, #889eb6);
    @include w_h(80px, 30px);
}

.max_bt_df {
    @include btn_color(#0695e5, #0EC6EE);
    @include w_h(100px, 32px);
    font-size: 14px;
}

.max_bt_gy {
    @include btn_color(#69809e, #889eb6);
    @include w_h(100px, 32px);
    font-size: 14px;
}

// comStyles
.comStyles {
    .header_btns {
        width: 100%;
        overflow-x: auto;
        font-size: 14px;
        justify-content: space-between;
        // margin: 20px 53px 20px 57px;
        margin: 0 0 15px 0;
        &>div {
            white-space: nowrap;
        }
        .hb_left {
            white-space: nowrap;
            padding-right: 20px;
            &>div {
                padding: 5px 0;
            }
            &>div>span {
                white-space: nowrap;
                display: inline-block;
                padding-right: 40px;
                ._n {
                    font-weight: 500;
                    padding-right: 15px;
                }
                i {
                    padding: 0 5px;
                }
                .w_160 {
                    width: 160px;
                }
            }
            .el-input__suffix {
                color: transparent;
            }
            .el-icon-circle-close {
                font-size: 24px;
                padding: 0;
            }
        }
        .el-input__icon {
            line-height: 30px;
        }
        .el-select {
            height: 30px;
            .el-input {
                height: 100%;
            }
            .el-input__suffix {
                top: 3px;
                height: 24px;
                background: linear-gradient(0deg, #AABED0, #778EA9);
                border: 1px solid rgba(255, 255, 255, 0.26);
                border-radius: 2px;
                .el-input__icon {
                    color: #fff;
                    height: 24px;
                    line-height: 24px;
                }
            }
        }
        .el-input__inner {
            // height: 100%;
            width: 100%;
        }
    }
    .a_content {
        width: calc(100%-110px);
        // margin: 20px 53px 20px 57px;
    }
}

// table css
.TabelOne {
    background: transparent;
    border: 1px solid #9c9c9c;
    border-radius: 5px;
    td,
    th.is-leaf {
        border-color: #9c9c9c;
    }
    tr {
        th:nth-last-child(2).is-leaf,
        td:nth-last-child(1) {
            border-right: none;
        }
    }
    thead {
        tr {
            &:nth-child(1) {
                th.is-leaf {
                    background: #e8eff7;
                }
            }
        }
    }
    .table-actived {
        background: #00FFD8;
    }
    tbody {
        tr {
            &:nth-last-child(1) {
                td {
                    border-bottom: none;
                }
            }
        }
    }
    &.el-table::before,
    &.el-table--border::after,
    &.el-table--group::after {
        width: 0;
        height: 0;
    }
}

.TabelTwo {
    width: 100%;
    background: transparent;
    .el-table__header-wrapper {
        background: linear-gradient(0deg, #778EA9, #AABED0), #778EA9;
        box-shadow: 0px 1px 3px 0px rgba(26, 39, 49, 0.4), 0px 0px 7px 0px rgba(127, 151, 183, 0.48);
        border-radius: 5px;
        margin-bottom: 10px;
    }
    thead {
        color: #fff;
        th,
        tr {
            height: 40px;
            background: transparent;
        }
        th {
            padding: 0;
        }
        tr {
            &:nth-child(1) {
                th.is-leaf {
                    border: none;
                    background: transparent;
                }
            }
        }
    }
    .el-table__body-wrapper {
        background: #FFFFFF;
        box-shadow: 0px 0px 3px 0px #98ABC2;
        // border-radius: 5px;
    }
}

.TabelThree {}

// scrollbar css
// mini滚动条样式
.mBar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.mBar::-webkit-scrollbar-thumb {
    background: #ffffffde;
    border-radius: 10px;
}

// dialog
.dLog {
    .header-title {
        display: flex;
        align-items: center;
        .iconfont {
            font-size: 24px;
            margin-right: 10px;
            color: #008aff;
        }
    }
    .el-dialog {
        box-shadow: 0px 1px 9px 0px rgba(128, 143, 159, 0.95);
        border-radius: 5px;
        max-height: 100%;
    }
    .el-dialog__header {
        border-bottom: 1px solid #eaeaea;
    }
    .el-dialog__footer {
        border-top: 1px solid #eaeaea;
        padding: 27px 0 32px;
    }
    .dialog-footer {
        .max_bt_gy,
        .max_bt_df {
            margin: 0 25px;
        }
    }
    .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before {
        content: '';
    }
    .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__content:after {
        position: absolute;
        top: 4px;
        right: -12px;
        font-size: 16px;
        content: '*';
        color: #F56C6C;
    }
    // 
    .el-dialog__body {
        padding: 30px 100px;
    }
    .el-input,
    .el-select {
        width: 100%;
        .el-input__inner {
            height: 30px;
        }
    }
    .dLog_content {
        border: 1px solid #bbb;
        border-radius: 4px;
        overflow: hidden;
    }
}

// .el-message  css
.el-message-box {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(101, 114, 125, 0.76);
    box-shadow: 0px 1px 6px 0px rgba(50, 60, 70, 0.95);
    border-radius: 5px 5px 5px 5px;
    .el-message-box__message {
        font-size: 22px;
    }
    .el-message-box__header {
        font-size: 16px;
        color: #252525;
        padding: 15px;
    }
    .el-message-box__content {
        border-top: 2px solid rgba(174, 172, 172, 0.2);
        border-bottom: 2px solid rgba(174, 172, 172, 0.2);
        padding: 50px 0;
    }
    .el-message-box__container {
        margin: 0 60px;
    }
    .el-message-box__status.el-icon-warning {
        font-size: 30px !important;
        color: #FFA800;
    }
    .el-message-box__status+.el-message-box__message {
        padding-left: 45px;
    }
    .el-message-box__btns {
        display: flex;
        justify-content: center;
        padding: 20px 0 10px;
        button {
            margin: 0 30px;
            border: 0;
            padding: 0;
        }
    }
    .el-button--default {
        @include w_h(80px, 25px);
        @include btn_color(#69809e, #889eb6);
    }
    .el-button--primary {
        @include w_h(80px, 25px);
        @include btn_color(#0695e5, #1da6df);
    }
}